initialize
Create an object from Predis.ai SDK.
Usage
const predis = new window.Predis();
predis.initialize({
appId: "YOUR_APP_ID",
embedToken: "SSO_TOKEN" // optional, to enable SSO
});
Parameters
| Name | Description | Type | Required |
|---|---|---|---|
appId | App ID received from Predis.ai account. | String | yes |
embedToken | A token generated with the provided SSO key to enable Single Sign-on | String | no |
whiteLabelLogo | Pass your logo URL to replace Predis.ai Logo in the SDK. This will take effect only with the Whitelabel SDK Addon available in the SDK pricing. | String | no |
downloadHidden | Pass true to hide the Download button in the SDK library page and inside the editor. This is defaulted to false. | String | no |
publishHidden | Pass true to hide the Publish button in the SDK library page and inside the editor. This is defaulted to false. | String | no |
combinePublishAndDownloadVisible | Pass true to show the combined "Download & publish" button. This basically combines both features. This is defaulted to false. | String | no |
closeOnPublish | Pass false to stop closing of SDK on clicking of publish button. This is used for cases where you want your users to close the SDK manually instead of doing it automatically. This is defaulted to true. | String | no |